{% extends "base.html" %}
{% block content %}
<div class="row">
    <div class="col-sm-12 col-md-3"></div>
    <div class="col-sm-12 col-md-6">
        <div class="panel panel-primary">
        <div class="panel-heading">
		<h3 class="panel-title">登陆</h3>
	</div>
	<div class="panel-body">
            <form class="form-horizontal" role="form" method="post" action="/user/login/" id="login_form">
               <div class="form-group">
                   <label class="col-sm-2 control-label">用户名</label>
                   <div class="col-sm-8">
                      <input class="form-control" id="username" name="username" placeholder="" type="text">
                   </div>
                   <div class="col-sm-2"></div>
               </div>
               <div class="form-group">
                   <label class="col-sm-2 control-label">密码</label>
                   <div class="col-sm-8">
                       <input class="form-control" id="password" name="password" placeholder="" type="password">
                   </div>
                   <div class="col-sm-2"></div>
               </div>
               <div class="form-group">
                   <div class="col-xs-6 col-sm-4 col-sm-offset-2">
                       <button type="submit" class="btn btn-default btn-block">登录</button>
                   </div>
                   <div class="col-xs-6 col-sm-4">
                       <a href="/user/regist/" class="btn btn-primary btn-block">注册</a>
                   </div>
                   <div class="col-sm-2"></div>
               </div>
           </form>
        <div>
    </div>
    <div class="col-sm-12 col-md-3"></div>
</div>
{% endblock %}
